import request from '@/utils/request'

export function login(data) {
  return request({
    url: 'manager/login',
    method: 'post',
    data
  })
}

export function getInfo(data) {
  return request({
    url: '/manager/loginInfo',
    method: 'post',
    data
  })
}

//登录用户更改密码
export function changePwd(data) {
  return request({
    url: '/manager/changePwd',
    method: 'post',
    data
  })
}

//后台用户列表
export function list(data) {
  return request({
    url: '/building/list',
    method: 'post',
    data
  })
}

//新建或修改后台用户
export function edit(data) {
  return request({
    url: '/manager/edit',
    method: 'post',
    data
  })
}

//后台用户详情
export function detail(data) {
  return request({
    url: '/manager/detail',
    method: 'post',
    data
  })
}

